#ifndef	__OCQueue__
#define __OCQueue__

#include "CMD.h"
#include "Windows.h"
typedef struct OCQueue{
	OpenClose_CMD *oc_cmd;
	int HasElement;
	int length;
	CRITICAL_SECTION cs;
} OCQueue;

OCQueue* createOCQueue();
void insert(OCQueue * queue,OpenClose_CMD *oc_cmd);
OpenClose_CMD*  pop(OCQueue *queue);
OpenClose_CMD*  first(OCQueue *queue);
int getLength(OCQueue *queue);

#endif